package com.baba.bracelet.service;

import com.alibaba.fastjson.JSONObject;
import com.baba.bracelet.base.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author wulongbo
 * @version 1.0
 * @date 2020/6/5 9:58
 * @description 获取token接口
 */

@Api(tags = "获取设备token接口")
public interface TokenService {

    @GetMapping("/getToken")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "url", dataType = "String", required = true, value = "请求url"),
            @ApiImplicitParam(paramType = "query", name = "customerId", dataType = "String", required = true, value = "客户ID"),
            @ApiImplicitParam(paramType = "query", name = "secretKey", dataType = "String", required = true, value = "密钥") })
    @ApiOperation(value = "获取设备token接口")
     String  getToken(String url,String customerId,String secretKey);

}
